package com.dopeydev.testcar;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageButton;

public class ButtonTestFragment extends Fragment implements OnClickListener{

	public static final String TAG = ButtonTestFragment.class
			.getCanonicalName();

	public static ButtonTestFragment getInstance() {
		ButtonTestFragment frag = new ButtonTestFragment();
		return frag;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return inflater.inflate(R.layout.overlay_test_layout, container, false);
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		
		initView(view);
		initListeners();
	}
	
	ImageButton saveLocation;
	private void initView(View view){
		saveLocation = (ImageButton)view.findViewById(R.id.findMyCarButton);
	}
	
	
	private void initListeners(){
		saveLocation.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.findMyCarButton:
			
			
			break;

		default:
			break;
		}
	}
	
	
	

}
